Looping through a text file, readline() construction fails on large files Ask Question up vote 2 down vote favorite 3 In Python 2.6 and 2.7 I would have thought that these two constructs would be identical: Method A i=0 f=open('fred.txt','r